package com.wenyang.controller;


import com.wenyang.service.CarouselService;
import com.wenyang.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/carousel")
@RestController
@Api(value = "轮播图片管理",tags = {"轮播图片管理"})
public class CarouselController {

    @Autowired
    private CarouselService carouselService;


    @ApiOperation(value = "查询所有轮播图片")
    @GetMapping("/findAllCarousel")
    public R findAllCarousel(){
        return R.success(carouselService.findAllCarousel());
    }

}
